/* Inxlude */
#include<Arduino.h>
#include "HAL/HAL.h"
#include "APP/APP.h"
#include <lvgl.h>
#include <lv_port_disp.h>

/* Functions header */
void lvgl_init();



/* main setup */
void setup()
{
    /* LVGL init */
    lvgl_init();
    /* HAL init */
    HAL_init();
    /* Applications init */
    App_init();
}


/* main loop, with priority 1 */
void loop()
{
    /* let the GUI do its work */
    lv_timer_handler();
    delay(5);
}


/* LVGL init */
void lvgl_init()
{
    /* lvgl init */
    lv_init();
    lv_port_disp_init();
}
